package com.zjitc.p1.config;

import com.zjitc.p1.obj.Teacher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by lenovo on 2018/3/14.
 */
@Configuration
public class JavaConfiguration1 {
//    XmlConfiguration中引入JavaConfiguration, <bean>
    @Bean
    public Teacher teacher(){
        return new Teacher();
    }
}
